package com.bed.lovewithpatientbed.common.params;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @author xuxiaoding
 * @version 1.0.0
 * @ClassName UserSearchParams.java
 * @Description 用户搜索信息封装类
 */
public class UserSearchParams {

    /**
     * 用户手机
     */
    private String userPhone;

    /**
     * 用户类型
     */
    private Integer userTypeId;

    /**
     * 性别
     */
    private String userSex;

    /**
     * 注册时间范围-开始
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date userRegisterStartDate;

    /**
     * 注册时间范围-结束
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date userRegisterEndDate;

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getUserTypeId() {
        return userTypeId;
    }

    public void setUserTypeId(Integer userTypeId) {
        this.userTypeId = userTypeId;
    }

    public String getUserSex() {
        return userSex;
    }

    public void setUserSex(String userSex) {
        this.userSex = userSex;
    }

    public Date getUserRegisterStartDate() {
        return userRegisterStartDate;
    }

    public void setUserRegisterStartDate(Date userRegisterStartDate) {
        this.userRegisterStartDate = userRegisterStartDate;
    }

    public Date getUserRegisterEndDate() {
        return userRegisterEndDate;
    }

    public void setUserRegisterEndDate(Date userRegisterEndDate) {
        this.userRegisterEndDate = userRegisterEndDate;
    }

    @Override
    public String toString() {
        return "UserSearchParams{" +
                "userPhone='" + userPhone + '\'' +
                ", userTypeId=" + userTypeId +
                ", userSex='" + userSex + '\'' +
                ", userRegisterStartDate=" + userRegisterStartDate +
                ", userRegisterEndDate=" + userRegisterEndDate +
                '}';
    }
}
